<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<script>
		  var year = prompt('请输入要判断的年份：');
		  if (year % 4 == 0 && year % 100 != 0 || year % 400 == 0 ) {
			   alert('该年份是闰年');
		  } else {
			  alert('该年份是平年');
		  }
		</script>
	</head>
	<body>
	</body>
</html>
